package unito.likir.messages.dht;

import unito.likir.storage.StorageEntry;

public class StoreRequestImpl extends AbstractRPC implements StoreRequest
{
	private static final long serialVersionUID = -5511111111111111L;
	
	private StorageEntry value;
	
	public StoreRequestImpl(long messageId, StorageEntry value)
	{
		super(messageId, RPC.OpCode.STORE_REQUEST);
		this.value = value;
	}
	
	public StorageEntry getValue()
	{
		return value;
	}
	
	public String toString()
	{
		return "StoreRequest: "+super.toString()+" - value="+ value;
	}
}